package com.example.vo;

public class Feeder extends Animal{

    public Feeder() {
        System.out.println("====Feeder类无参构造函数====");
    }

    public void feed(Dog dog) {
        System.out.println("====Feeder类喂狗====");
        dog.eat();
    }
    public void feed() {
        System.out.println("====Feeder类无参喂狗====");
    }
    public void feed(Cat cat) {
        System.out.println("====Feeder类喂猫====");
        cat.eat();
    }

}
